﻿import request from '/@/utils/request';
enum Api {
  AddSysDataTransfer = '/api/sysDataTransfer/add',
  DeleteSysDataTransfer = '/api/sysDataTransfer/delete',
  UpdateSysDataTransfer = '/api/sysDataTransfer/update',
  SaveSysDataTransfer = '/api/sysDataTransfer/save',
  PageSysDataTransfer = '/api/sysDataTransfer/page',
  ExportSysDataTransfer = 'api/sysDataTransfer/export',
}

//导出数据迁移
export const exportSysDataTransferExcel=(params?:any)=>
	request({
		url:Api.ExportSysDataTransfer,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加数据迁移
export const addSysDataTransfer = (params?: any) =>
	request({
		url: Api.AddSysDataTransfer,
		method: 'post',
		data: params,
	});

// 删除数据迁移
export const deleteSysDataTransfer = (params?: any) => 
	request({
			url: Api.DeleteSysDataTransfer,
			method: 'post',
			data: params,
		});

// 编辑数据迁移
export const updateSysDataTransfer = (params?: any) => 
	request({
			url: Api.UpdateSysDataTransfer,
			method: 'post',
			data: params,
		});

// 保存数据迁移
export const saveSysDataTransfer = (params?: any) => 
	request({
			url: Api.SaveSysDataTransfer,
			method: 'post',
			data: params,
		});

// 分页查询数据迁移
export const pageSysDataTransfer = (params?: any) => 
	request({
			url: Api.PageSysDataTransfer,
			method: 'post',
			data: params,
		});


